<?php slot('header')?>
<style type="text/css">
#page-content-right #inner .box-content .box-content-main table.table-form td.input input.password{
	width: 150px;
}
</style>
<script type="text/javascript">
	$(function(){
			var $is_update = <?php echo intval($data['is_update'])?>;
			if($is_update == 1){
					$('#AdminFForm_login_password').removeClass('hz-required');
					$('#AdminFForm_login_password').removeClass('required');
					$('#AdminFForm_password_confirm').removeClass('required ');
					$('#AdminFForm_login_user').attr('readonly',true);
				}
			$('#password-random').unbind('click').click(function(){
					var $ran = ULTI.ranString(9);
					$('#AdminFForm_password_confirm, #AdminFForm_login_password').val($ran);
					$(this).text($ran);
				});
		});
</script>
<?php end_slot()?>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<?php include_component('default', 'error');?>
<div class="clr"></div>
<div class="box-content">
	<form action="?action_name=<?php echo $data['action']?>" method="post" name="form_main" id="form-main">
		<?php echo $form['_csrf_token']?>
		<div class="clr"></div>
		<div class="box-content-main ">
			<div class="message"><?php echo empty($data['result'])?'':$data['result']?></div><div class="note">* is required.</div>
			<div class="clr"></div>
			<table class="table-list table-form" cellspacing="0" cellpadding="0" border="0">
				
				<tr class="class1">
					<td class="label"><?php echo __('account-name')?></td>
					<td class="input"><?php echo $form['name']?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('account-login-user')?></td>
					<td class="input"><?php echo $form['login_user']?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('account-email')?></td>
					<td class="input"><?php echo $form['email']?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('account-group-id')?></td>
					<td class="input"><?php echo $form['group_id']?></td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('account-password')?></td>
					<td class="input">
						<?php echo $form['login_password']?> &nbsp; <a href="#" style="color:#f00;" id="password-random" title="<?php echo __('account-password-random')?>"><?php echo __('account-password-random')?></a><br/>
						<span style="color:#00f;font-style: italic"><?php echo __('account-password-confirm')?></span><br/>
						<?php echo $form['password_confirm']?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('is-enabled')?></td>
					<td class="input"><?php echo $form['is_enabled']?></td>
					
				</tr>
				<tr class="class1" style="background:#fff">
					<td class="label">&nbsp;</td>
					<td class="input"><input type="button" id="button-submit" name="button-submit" class="button hz-submit" data-form-id="form-main" value="<?php echo $data['button_action']?>"/></td>
					
				</tr>
			</table>
		</div>
		<div class="clr"></div>
		<div class="control-back"><a href="<?php echo $data['redirect']?>" title="<?php echo __('control_back')?>" alt="<?php echo __('control_back')?>"><?php echo __('control_back')?></a></div>
	</form>
</div>